Revert unintended change to act-height calc
authorjustbur <justin@burkett.cc>
Wed, 8 Jul 2015 12:52:28 +0000 (08:52 -0400)
committerjustbur <justin@burkett.cc>
Wed, 8 Jul 2015 12:52:28 +0000 (08:52 -0400)
which-key.el

index f86248f1f0b3bb6ee92b59027d4dc63ba388b62e..3af32b891c8268652c3c276b9a2b37c19ad68273 100644 (file)
@@ -417,7 +417,7 @@ the maximum number of lines availabel in the target buffer."
           ;; not doing anything with other pages for now
           (setq pages (reverse pages)
                 first-page (concat prefix-string (car pages))
-                act-height (s-count-matches "\n" first-page))
+                act-height (1+ (s-count-matches "\n" first-page)))
           ;; (when (> (length pages) 1) (setq first-page (concat first-page "...")))
           (if (eq which-key-popup-type 'minibuffer)
               (let (message-log-max) (message "%s" first-page))